55f9c69bf6682efa6524adcd0b488691399f3aab,components/bio-formats-plugins/src/loci/plugins/util/LociPrefs.java,LociPrefs,makeImageReader,#,75

Before Change


    ImageReader reader = new ImageReader(enabledClasses);

    DefaultMetadataOptions options =
      (DefaultMetadataOptions) reader.getMetadataOptions();
    options.setBoolean(ZeissCZIReader.ALLOW_AUTOSTITCHING_KEY,
                       allowCZIAutostitch());
    options.setBoolean(ZeissCZIReader.INCLUDE_ATTACHMENTS_KEY,

After Change


    }
    ImageReader reader = new ImageReader(enabledClasses);

    MetadataOptions options = reader.getMetadataOptions();
    if (options instanceof DynamicMetadataOptions) {
      ((DynamicMetadataOptions) options).setBoolean(
        ZeissCZIReader.ALLOW_AUTOSTITCHING_KEY, allowCZIAutostitch());
      ((DynamicMetadataOptions) options).setBoolean(
        ZeissCZIReader.INCLUDE_ATTACHMENTS_KEY, includeCZIAttachments());